package com.ruicar.afs.cloud.parameter.commom.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @ClassName:ApplyTsysAddressParam
 * @Description:地址区域参数表
 * @Author:jihuigeng
 * @Date:2020/5/13 16:51
 * @Version: V1.0
 **/
@Data
@TableName(value = "tsys_address_param", autoResultMap = true)
@Accessors(chain = true)
public class TsysAddressParam extends BaseEntity<TsysAddressParam> {
    /**
     * 地址级别;0-中国，1-省份，2-城市，3-区县，4-街道
     */
    private String addrLevel;
    /**
     * 地址代码
     */
    private String value;
    /**
     * 地址名称
     */
    private String label;
    /**
     * 上级代码
     */
    private String upperCode;
    /**
     * 是否父节点
     */
    private Boolean isParent;
    /**
     * 邮政编码
     */
    private String postCode;
    /**
     * 拼音代码
     */
    private String spellCode;
    /**
     * 国标码
     */
    private String gbCode;
    /**
     * 排序id
     */
    private String orderId;
    /**
     * 授权区域前端展示
     */
    private String title;

    @TableField(exist = false)
    @ApiModelProperty(value = "子区域")
    private List<TsysAddressParam> children;

    @TableField(exist = false)
    @ApiModelProperty(value = "节点展开 前端所需")
    private Boolean expand = true;

    @TableField(exist = false)
    @ApiModelProperty(value = "是否勾选 前端所需")
    private Boolean checked = false;
}
